
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <link href="<c:url value='/static/css/bootstrap.css'/>" rel="stylesheet" media="screen" />

        <link href="<c:url value='/static/css/defaultStyle.css'/>" rel="stylesheet" media="screen" />
        <link href="<c:url value='/static/font-awesome/css/font-awesome.css'/>" rel="stylesheet" media="screen" />

        <script src="<c:url value='/static/js/jquery-2.0.3.js'/>"></script>
        <script src="<c:url value='/static/js/bootstrap.js' />" ></script>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title><sf:message code="app.name" /> | <sf:message code="login.title" /></title>
    </head>

    <body>
        <div class="container">

            <div class="row" style="height: 100px">

            </div>

            <div class="row">
                <div class="col-lg-4 col-md-4 col-sm-4">

                </div>

                <div id="login-wrapper" class="col-lg-4 col-md-4 col-sm-4 well login-container">

                    <span style="text-align: center">
                        <h3><sf:message code="login.msg.welcome"/></h3>
                    </span>

                    <c:if test="${not empty sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}">
                        <div class="alert alert-danger alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            <sf:message code="login.msg.error" /> <br />
                            <b><i>${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}</i></b>
                            <c:remove var="SPRING_SECURITY_LAST_EXCEPTION" scope="session"/>
                        </div>
                    </c:if>

                    <div class="login-form">

                        <form name='f' action="<sf:url value='j_spring_security_check' />" method='POST' class="form-horizontal" role="form">
                            <div class="form-group">
                                <div class="col-lg-12 col-md-12 col-sm-12 left-inner-addon" style="margin-bottom: 5px">
                                    <i class="fa fa-user" style="color: #808080"></i>
                                    <input name='j_username' value='' placeholder="<sf:message code='login.lbl.username' />" class="form-control" type='text'
                                            required="true" autocomplete="off" autofocus="true">
                                </div>

                                <div class="col-lg-12 col-md-12 col-sm-12 left-inner-addon" style="margin-top: 5px">
                                    <i class="fa fa-lock" style="color: #808080"></i>
                                    <input name='j_password' value='' placeholder="<sf:message code='login.lbl.password'/>" class="form-control" type='password'
                                            required="true">
                                </div>
                                <div class="col-lg-12 col-md-12 col-sm-12">
                                    <br/>
                                    <button type="submit" class="btn btn-success col-lg-12"><sf:message code="login.btn.login" /> </button>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>

                <div class="col-lg-4 col-md-4 col-sm-4">

                </div>
            </div>

        </div>
            <nav class="navbar-fixed-bottom navbar-nav padded-navbar">
                <span><sf:message code="app.name" />  :: <sf:message code="app.version" /></span>
            </nav>


    </body>
</html>